package ca.llsutherland.squash.shoe;

import ca.llsutherland.squash.BaseValidator;
import ca.llsutherland.squash.administrator.AdministratorsValidator;
import ca.llsutherland.squash.domain.Shoe;

public class ShoesValidator extends BaseValidator {

    public static void validate(Shoe expected, Shoe actual) {
        assertValidDomainObject("actual shoe", actual);
        AdministratorsValidator.validate(expected.getCreatedBy(), actual.getCreatedBy());
        assertEquals("created by should be equal", expected.getCreatedBy(), actual.getCreatedBy());
        assertEquals("Models should be the same", expected.getModel(), actual.getModel());
        assertEquals("Brands should be the same", expected.getBrand(), actual.getBrand());
    }

}
